import React from "react";
import WxButton from "@/components/WCStylecomponents/Button";
import AForm, { AFormItem } from "@/components/Common/AForm";
import { WxUploader } from "@/components";
import { Box } from "@mui/system";
import { Form } from "antd";
import { Input } from "antd-mobile";
export default function () {
  const [form] = Form.useForm();
  return (
    <Box>
      <AForm
        initialValues={{
          atta: ["https://mvwebfs.tx.kugou.com/202407241849/5dd192cc342ee31d76e5860989e7f063/v2/4705081fc62e5a4049e74ac893404318/KGTX/CLTX002/4705081fc62e5a4049e74ac893404318.mp4"],
        }}
        onSubmit={(values) => {
          console.log(values);
        }}
      >
        <AFormItem name={"Align"}>
          <WxButton placeholder='地址' value={["位置"]}></WxButton>
        </AFormItem>
        <AFormItem name={"atta"}>
          {/* <WxUploader beformOnChange={(list, info) => list?.map((item) => (item instanceof Object ? item.name : item))} multiple accept='image/*'></WxUploader> */}
          <WxUploader maxCount={2} multiple></WxUploader>
        </AFormItem>
        <AFormItem
          name={"pattern"}
          rules={[
            {
              pattern: /^-?\d+(\.{1}\d+)?$/,
              message: "请输入合法数字",
            },
          ]}
        >
          <Input></Input>
        </AFormItem>
      </AForm>
    </Box>
  );
}
